﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Data.Linq.Mapping;
using OnlineVideos.Common;


namespace OnlineVideos.Data
{
    [SQLite.Table("ShowList"), ConditionType("ShowList", "PrimaryCondition")]
    public class ShowList : INavigationContext
    {


        [SQLite.PrimaryKey, ConditionType("ShowID", "PrimaryCondition")]
        public int ShowID
        {
            get;
            set;
        }

        [SQLite.Column("Title")]
        public string Title
        {
            get;
            set;
        }

       [SQLite.Column("TileImage")]
        public string TileImage
        {
            get;
            set;
        }
        [SQLite.Column("Rating")]
        public double Rating
        {
            get;
            set;
        }
        [SQLite.Column("ReleaseDate")]
        public string ReleaseDate
        {
            get;
            set;
        }
          [SQLite.Column("Genre")]
        public string Genre
        {
            get;
            set;
        }
        [SQLite.Column("CreatedDate")]
        public DateTime CreatedDate
        {
            get;
            set;
        }
         [SQLite.Column("IsFavourite")]
        public bool IsFavourite
        {
            get;
            set;
        }
        [SQLite.Column("SubTitle")]
        public string SubTitle
        {
            get;
            set;
        }
        [SQLite.Column("IsHidden")]
        public bool IsHidden
        {
            get;
            set;

        }
        [SQLite.Column("PivotImage")]
        public string PivotImage 
        {
            get;
            set;

        }
        [SQLite.Column("Description")]
        public string Description
        {
            get;
            set;

        }

        [SQLite.Column("ClientShowUpdated")]
        public DateTime ClientShowUpdated
        {
            get;
            set;

        }
        [SQLite.Column("ClientPreferenceUpdated")]
        public DateTime ClientPreferenceUpdated
        {
            get;
            set;

        }

        [SQLite.Column("RatingFlag")]
        public int RatingFlag
        {
            get;
            set;

        }
          [SQLite.Column("RatingImage")]
        public string RatingImage
        {
            get;
            set;
        }
        [SQLite.Ignore]
        public string RemoveShow
        {
            get;
            set;
        }
        [SQLite.Ignore]
        public ImageSource Image
        {
            get;
            set;
        }
        private string _filesize;
        [SQLite.Ignore]
        public string FileSize
        {
            get { return _filesize; }
            set { _filesize = value; }

        }
    }
}
